//
//  Block.h
//  AvoidTheBlocks
//
//  Created by hoangtx on 6/18/13.
//
//

#ifndef AvoidTheBlocks_Block_h
#define AvoidTheBlocks_Block_h

#include "cocos2d.h"
#include "BaseBlock.h"
using namespace cocos2d;

class Block : public BaseBlock{
    
    CCSprite* sprite;
    
public:
    
    
    void setBlockToIndex(int index);
    void fallDown(CCArray* blockList, CCCallFuncO* callback);

    void dropByDistance(double distance);
    void minimize();
    void checkIfItShouldContinueToFallDown(CCObject* sender);
    
    int getColumnIndex();
    int getRowIndex();
    double getBlockSize();
    virtual bool init();
    CREATE_FUNC(Block);
};

#endif
